﻿using System.Xml.Linq;
using Microsoft.Data.Entity.Design.Extensibility;
using System.ComponentModel;

namespace Liekhus.EntityFramework.XAFExtensions.CustomAttributes
{
    public class CustomAttributeCodeProperty : BaseCustomAttribute<string>
    {
        public CustomAttributeCodeProperty(XElement parent, PropertyExtensionContext context)
            : base(parent, context)
        {
            
        }

        public override string PropertyName { get { return "CustomAttributeCode"; } }
        public override string PropertyFormat { get { return "{value}"; } }

        [DisplayName("Custom Attribute Code")]
        [Description("Allows for custom attribute code to be generated into the object.")]
        public override string PropertyValue
        {
            get
            {
                return base.PropertyValue;
            }
            set
            {
                base.PropertyValue = value;
            }
        }
    }
}
